<?php


namespace app\admin\model;


use think\Model;

class Banner extends Model
{
        public function fenlei()
    {
        //关联角色表
        return $this->hasOne('fenlei','id','fenlei_id');
    }
    public function admin()
    {
        //关联角色表
        return $this->belongsTo('Admin');
    }
}